package org.jeecg.modules.xindian.reconciliation.job;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.xindian.reconciliation.service.IInsuranceStatisticsService;
import org.jeecg.modules.xindian.reconciliation.service.InsuranceXindianReconciliationService;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class ProcesDataJob implements Job {
    @Autowired
    private InsuranceXindianReconciliationService xindianReconciliationService;
    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        try{
            xindianReconciliationService.processData();
        }catch (Exception e){
                log.error("加载数据失败");
        }
    }
}
